public class Afactory extends Factory {
    public Fruit CreatFruit(){
        return new apple();
}
}